﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NHibernate;
using System.IO;
using System.Configuration;

namespace Landscape.Business.FNH
{
    public class QueryInterceptor : EmptyInterceptor
    {
        public override NHibernate.SqlCommand.SqlString OnPrepareStatement(NHibernate.SqlCommand.SqlString sql)
        {
            File.AppendAllText(ConfigurationManager.AppSettings["FNHLogFile"], sql.ToString() + Environment.NewLine);
            return sql;
        } 

        
    }
}
